package com.young.canal.serializer;

import java.io.Serializable;

/**
 * @description：
 * @author: yangyahui01
 * @date: 12/11/24 7:03 PM
 */
public class EventColumn implements Serializable {

    private String name;//列名,mysql中可能没有
    private String value;//列值
    private int index;//列索引位置,与数据库表中列顺序对应
    private boolean key;//是否为主键
    private boolean nullValue;//值是否为NULL

    private int length;//值原始长度

    private String mysqlType;//列值对应的mysql数据类型

    private int sqlType;//对应的java字段类型

    private boolean updated;//此字段是否修改

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public boolean isKey() {
        return key;
    }

    public void setKey(boolean key) {
        this.key = key;
    }

    public boolean isNullValue() {
        return nullValue;
    }

    public void setNullValue(boolean nullValue) {
        this.nullValue = nullValue;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getMysqlType() {
        return mysqlType;
    }

    public void setMysqlType(String mysqlType) {
        this.mysqlType = mysqlType;
    }

    public int getSqlType() {
        return sqlType;
    }

    public void setSqlType(int sqlType) {
        this.sqlType = sqlType;
    }

    public boolean isUpdated() {
        return updated;
    }

    public void setUpdated(boolean updated) {
        this.updated = updated;
    }
}

